/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __CHR_MODEL_ARCHIVE_H__
#define __CHR_MODEL_ARCHIVE_H__

#include <string>

#include "M2File.h"
#include "M2SkinFile.h"
#include "M2AnimFile.h"

namespace PQGameCore
{
	class CharacterModelArchive
	{
	public:
		static const std::string PATH;
	protected:
		CharacterModelArchive();
	public:
		static CharacterModelArchive& getSingleton();
		bool modelFileExist(std::string path);

		M2File* openM2File(std::string path);
		M2SkinFile* openM2SkinFile(std::string path);
		M2AnimFile* openM2AnimFile(std::string path);
	};

}
#define SCharacterModelArchive PQGameCore::CharacterModelArchive::getSingleton()

#endif
